<template>
    <div class="text">
        <Home :setName="name"></Home>
        <Son @getPassWord = "getPassWord"></Son>
    </div>
</template>

<script>
import Home from "@/components/Home.vue"
import Son from "@/components/Son.vue"
export default {
    components:{
        Home,
        Son,
    },
    data() {
        return {
            name:"江山如此多娇"
        }
    },
    methods: {
        getPassWord(val) {
          alert(val);
        }
    }

}
</script>

<style>

</style>